Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ruleorder directive #387

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

rahuldesai1
Copy link
Contributor

block_content overrides must return a generator, not None. Otherwise, the workflow will error out.

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/snakemake/__init__.py", line 654, in snakemake
    workflow.include(
  File "/usr/local/lib/python3.9/site-packages/snakemake/workflow.py", line 1213, in include
    code, linemap, rulecount = parse(
  File "/usr/local/lib/python3.9/site-packages/snakemake/parser.py", line 1274, in parse
    for t, orig_token in automaton.consume():
  File "/usr/local/lib/python3.9/site-packages/snakemake/parser.py", line 100, in consume
    for t, orig in self.state(token):
  File "/usr/local/lib/python3.9/site-packages/snakemake/parser.py", line 1226, in python
    for t in self.subautomaton(token.string).consume():
  File "/usr/local/lib/python3.9/site-packages/snakemake/parser.py", line 100, in consume
    for t, orig in self.state(token):
  File "/usr/local/lib/python3.9/site-packages/snakemake/parser.py", line 175, in block
    yield from self.block_content(token)
TypeError: 'NoneType' object is not iterable

@rahuldesai1 rahuldesai1 merged commit e726fe8 into main Jan 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants